package org.acghub.json;

import org.bson.Document;

public interface TableSerializable<K, V> {
    Document marshalKey(K key);

    Document marshalValue(V value);

    K unmarshalKey(Document doc) throws Exception;

    V unmarshalValue(Document doc) throws Exception;
}
